package com.dongjiantong.openplatform.entity;/**
 * Created by cao on 2017/12/13.
 */

import java.io.Serializable;

/**
 * @author cao
 * @create 2017-12-13 下午7:55
 **/
public class RequestBodyData implements Serializable {
    private static final long serialVersionUID = 4587054567011200954L;
    private String pampasCall;
    private String data;
    private String appKey;
    private String sign;

    public RequestBodyData() {
    }

    public String getPampasCall() {
        return this.pampasCall;
    }

    public String getData() {
        return this.data;
    }

    public String getAppKey() {
        return this.appKey;
    }

    public String getSign() {
        return this.sign;
    }

    public void setPampasCall(String pampasCall) {
        this.pampasCall = pampasCall;
    }

    public void setData(String data) {
        this.data = data;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public boolean equals(Object o) {
        if(o == this) {
            return true;
        } else if(!(o instanceof RequestBodyData)) {
            return false;
        } else {
            RequestBodyData other = (RequestBodyData)o;
            if(!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$pampasCall = this.getPampasCall();
                    Object other$pampasCall = other.getPampasCall();
                    if(this$pampasCall == null) {
                        if(other$pampasCall == null) {
                            break label59;
                        }
                    } else if(this$pampasCall.equals(other$pampasCall)) {
                        break label59;
                    }

                    return false;
                }

                Object this$data = this.getData();
                Object other$data = other.getData();
                if(this$data == null) {
                    if(other$data != null) {
                        return false;
                    }
                } else if(!this$data.equals(other$data)) {
                    return false;
                }

                Object this$appKey = this.getAppKey();
                Object other$appKey = other.getAppKey();
                if(this$appKey == null) {
                    if(other$appKey != null) {
                        return false;
                    }
                } else if(!this$appKey.equals(other$appKey)) {
                    return false;
                }

                Object this$sign = this.getSign();
                Object other$sign = other.getSign();
                if(this$sign == null) {
                    if(other$sign != null) {
                        return false;
                    }
                } else if(!this$sign.equals(other$sign)) {
                    return false;
                }

                return true;
            }
        }
    }

    public boolean canEqual(Object other) {
        return other instanceof RequestBodyData;
    }

    @Override
    public int hashCode() {
        //int PRIME = true;
        int result = 1;
        Object $pampasCall = this.getPampasCall();
        result = result * 31 + ($pampasCall == null?0:$pampasCall.hashCode());
        Object $data = this.getData();
        result = result * 31 + ($data == null?0:$data.hashCode());
        Object $appKey = this.getAppKey();
        result = result * 31 + ($appKey == null?0:$appKey.hashCode());
        Object $sign = this.getSign();
        result = result * 31 + ($sign == null?0:$sign.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "RequestBodyData(pampasCall=" + this.getPampasCall() + ", data=" + this.getData() + ", appKey=" + this.getAppKey() + ", sign=" + this.getSign() + ")";
    }
}